package com.machuxin.course.patterns.decorator;

/**
 * 鸡蛋装饰器
 */
public class EggPancakeDecorator extends PancakeDecorator {

    public EggPancakeDecorator(Pancake pancake) {
        super(pancake);
    }

    @Override
    public String getMsg() {
        return super.getMsg() + "加一个鸡蛋";
    }

    @Override
    public Integer getPrice() {
        return super.getPrice() + 1;
    }
}
